package service;

import dao.BookDao;
import dao.impl.BookDaoImpl;
import pojo.Book;
import pojo.User;

import java.util.List;

public class BookService {
    BookDao bookDao = new BookDaoImpl();
    public List<Book> searchAll(){return bookDao.searchAll();}
    public List<Book> searchClassify(String Classify){return bookDao.searchClassify(Classify);}
    public List<Book> searchFuzzy(String fuzzy){return bookDao.searchFuzzy(fuzzy);}
    public Book searchId(String id){return bookDao.searchId(id);}
    public void add(Book book) { bookDao.add(book); }
    public void update(Book book){bookDao.update(book);}
    public void delete(String bookId){ bookDao.delete(bookId); }
}
